<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Coin extends Model
{
    protected $table = 'coin';
    public $timestamps = false;

    public function getCoinPrice($coin_id){
        return Coin::where('id', $coin_id)->value('price');
    }
}
